package com.luo.dt.seata.tcc.feign;

import com.luo.dt.common.model.result.RespResult;
import com.luo.dt.seata.tcc.model.dto.DebitDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户服务 - feign
 *
 * @author luohq
 * @date 2021-11-02
 */
@FeignClient(name = "account-service")
public interface AccountFeignClient {

    @PostMapping("/account/debit")
    RespResult debit(@SpringQueryMap DebitDto debitDto);
}
